# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-settings-daemon
pkgver=1.26.0
pkgrel=1
pkgdesc="MATE Settings daemon"
url="https://github.com/mate-desktop/mate-settings-daemon"
# s390x and riscv64 blocked by polkit -> mate-desktop
arch="all !s390x !riscv64"
license="GPL-2.0-or-later LGPL-2.1-or-later"
depends="mate-common"
makedepends="libtool intltool libmatekbd-dev freeglut-dev
	glib-dev gtk+3.0-dev dbus-glib-dev dconf-dev libxklavier-dev libsm-dev
	mate-desktop-dev polkit-dev startup-notification-dev
	libcanberra-dev libmatemixer-dev libnotify-dev gobject-introspection-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-settings-daemon-$pkgver.tar.xz
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-polkit \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
a044d60b2ee00ea99aa29f23990942a37849ddc8cf80e1b8cd6ba12ec92a27a4e602f19586b86a0a7af067e93f71971acd6850ab5f9bc7ce451cd07518fefb91  mate-settings-daemon-1.26.0.tar.xz
"
